package com.woniu.p2p.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    @RequestMapping("borrow")
    public String test(){
        System.out.println(1);
        return "content/borrow";
    }

    @RequestMapping(value = {"/index","/"})
    public String showPage(Model model){
        return "index";
    }


    @RequestMapping("afterLoanManager")
    public String afterLoanManager(Model model){

        return "content/afterLoanManager";
    }

    @RequestMapping("mainPage")
    public String mainPage(Model model){
        return "content/mainPage";
    }
    @RequestMapping("announce")
    public String announce(Model model){
        return "content/announce";
    }
    @RequestMapping("newsRecord")
    public String newsRecord(Model model){
        return "content/newsRecord";
    }
    @RequestMapping("operationPerformance")
    public String operationPerformance(Model model){
        return "content/operationPerformance";
    }

    @RequestMapping("chargeRecord")
    public String chargeRecord(Model model){
        return "content/chargeRecord";
    }
    @RequestMapping("commentManager")
    public String commentManager(Model model){
        return "content/commentManager";
    }
    @RequestMapping("company")
    public String company(Model model){
        return "content/company";
    }
    @RequestMapping("creditsManager")
    public String creditsManager(Model model){
        return "content/creditsManager";
    }
    @RequestMapping("customerManager")
    public String customerManager(Model model){
        return "content/customerManager";
    }
    @RequestMapping("discountManager")
    public String discountManager(Model model){
        return "content/discountManager";
    }

    @RequestMapping("login")
    public String login(Model model){
        return "login";
    }
    @RequestMapping("personLoginRecord")
    public String personLoginRecord(Model model){
        return "content/personLoginRecord";
    }
    @RequestMapping("personManager")
    public String personManager(Model model){
        return "content/personManager";
    }
    @RequestMapping("projectbreif")
    public String projectbreif(Model model){
        return "content/projectbreif";
    }
    @RequestMapping("repay")
    public String repay(Model model){
        System.out.println(1);
        return "content/repay";
    }
    @RequestMapping("riskManager")
    public String riskManager(Model model){
        return "content/riskManager";
    }
    @RequestMapping("sign-up")
    public String sign_up(Model model){
        return "sign-up";
    }
    @RequestMapping("SystemRecord")
    public String SystemRecord(Model model){
        return "content/SystemRecord";
    }
    @RequestMapping("userDiscountManager")
    public String userDiscountManager(Model model){
        return "content/userDiscountManager";
    }
}
